<template>
	<view class="content">
		<text class="txt">带颜色的文字</text>
	</view>
</template>
<script setup>
	import { ref } from 'vue';
	const color = ref('red');
	const size = ref('60px');
</script>
<style scoped>
	.txt {
		color: v-bind(color);
		font-size: v-bind(size);
	}
</style>
